<!DOCTYPE html>
<html lang="">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <link rel="icon" href="<%= BASE_URL %>favicon.ico">
    <title><%= htmlWebpackPlugin.options.title %></title>
    <script>
      // 移动端js等比例适配 JS动态修改配合rem适配(根目录的html的font-size为100px, 项目里的单位rem)
      //width 屏幕宽度
      var width = document.documentElement.clientWidth || document.body.clientWidth
       // 375设计稿宽度
      var ratio = width / 375; 
      //计算当前屏幕的宽度与设计稿比例
      var fontSize = 100 * ratio
      // 根据屏幕宽度 动态计算根元素的 字体大小
      document.getElementsByTagName('html')[0].style['font-size'] = fontSize + 'px';
    </script>
  </head>
  <body>
    <noscript>
      <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
    </noscript>
    <div id="app"></div>
    <!-- built files will be auto injected -->
  </body>
</html>
